<%-- 
    Document   : UpdatePaymentData
    Created on : Aug 29, 2013, 7:39:36 PM
    Author     : 4410s
--%>

<%@page import="java.sql.ResultSet"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         
       <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <title>Update Payment Page</title>
        <style type="text/css">
            table.styletable{
                font-family: verdana,Times New Roman,sans-serif;
                font-size:11px;
                width: 100%;
                color:black;
            
            }
            table.styletable td {
                background:#ff99ff;
              
                padding: 8px;
                
            }
            h1{
                color: white;
            }
        </style>
        <script>
            function check()
            {
                if (UpdatePayment.drop_status.value =="Select Status") {
                    alert('Select Status ');
                    UpdatePayment.drop_status.focus();
                    return false;
                }
                
                return true;
            }
        </script>
    </head>
    <body>
        <%
            ResultSet rs3 = (ResultSet) session.getAttribute("DetailsServices_Data");
        %>
        <p><h1  align="center" class="h1">Update Service Details</h1></p>
        <form id="frmUpdatePayment" name="UpdatePayment" action="Update_Payment" method="POST">
            <table border="0" class="styletable">
                <tbody>
                    <%
                        while (rs3.next()) {
                    %>
                    <tr>
                        <td align="right">ID :</td>
                        <td><input type="text" class="gwt-TextBox" readonly="true" name="txt_id" value="<% out.println(rs3.getInt("id"));%>" /></td>
                    </tr>
                    <tr>
                        <td align="right">ID Services :</td>
                        <td><input type="text"  class="gwt-TextBox" readonly="true"  name="txt_idservices" value="<% out.println(rs3.getInt("id_services"));%>" /></td>
                    </tr>
                    <tr>
                        <td align="right">UserName :</td>
                        <td><input type="text"  class="gwt-TextBox" readonly="true"  name="txt_username" value="<% out.println(rs3.getString("username").toString());%>" /></td>
                    </tr>
                    <tr>
                        <td align="right">Car Types :</td>
                        <td><input type="text"  class="gwt-TextBox" readonly="true"  name="txt_cartypes" value="<% out.println(rs3.getString("card_types").toString());%>" /></td>
                    </tr>
                    <tr>
                        <td align="right">Car Number :</td>
                        <td><input type="text"  class="gwt-TextBox" readonly="true"  name="txt_carnumber" value="<% out.println(rs3.getString("card_number").toString());%>"/></td>
                    </tr>
                    <tr>
                        <td align="right">Status :</td>
                        <td><select name="drop_status">
                                <option value="Select Status"  class="text-nomarl-reb" >Select Status</option>
                                <option value="True" class="text-nomarl-reb">True</option>
                                <option value="False" class="text-nomarl-reb">False</option>
                            </select></td>
                    </tr>
                    <tr>
                        <td align="right">UserName Admintration :</td>
                        <td><input type="text" name="txt_useradmin"  class="gwt-TextBox" readonly="true" value="<% out.println(rs3.getString("username_admin").toString());%>"/></td>
                    </tr>
                    <%
                        }
                    %>
                    <tr>
                        <td align="right"><input type="submit"  value="Update" name="bt_update"  class="gwt-Button"  onclick="return check()"/></td>
                        <td align="left"><input type="reset"  value="Reset" name="bt_reset"  class="gwt-Button"  /></td>
                    </tr>

                </tbody>
            </table>

        </form>
    </body>
</html>
